<%/* I (David P Shenba) licenses this file to you under the Apache License, 
 * Version 2.0 (the "License"); you may not use this 
 * file except in compliance with the License.  You may 
 * obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */ %>
<%@ page contentType="text/html; charset=utf-8" %>

<%@ taglib uri="/WEB-INF/classes/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/classes/struts-nested.tld" prefix="nested" %>

<html:html>
<title>Nested Array Demo (Lazy)</title>
	<body>
		<html:form action="inputScreen">
		<table border="1">
				<nested:iterate property="outerBeans" indexId="outerCount">
					<tr>
						<td>
					    	<b>${outerCount+1}.outer field 1:</b> <nested:write property="field1"/>
					    	<b>${outerCount+1}.outer field 2:</b> <nested:write property="field2"/>
				    	</td>
				    </tr>
				    <tr>
				    	<td>
					        <nested:iterate property="innerBeans" indexId="innerCount">
					        	<table border="1" width="100%">
					        		<tr><td>
						            	<b>${innerCount+1}.inner field 1:</b> <nested:write property="field1"/>
						            </td></tr>
						            <tr><td>
						            	<b>${innerCount+1}.inner field 2:</b> <nested:write property="field2"/>
					            	</td></tr>
					            </table>
					        </nested:iterate>
					     </td>
					</tr>
				</nested:iterate>
			</table>
		</html:form>
	</body>
</html:html>